﻿@model Domain.Dto.UserDto
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div style="width: 45%; margin-right: 2%; float: left">
    <div class="editor-label">
        @Html.LabelFor(model => model.UserName)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.UserName)
        @Html.ValidationMessageFor(model => model.UserName)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Pwd)
    </div>
    <div class="editor-field">
        @Html.PasswordFor(model => model.Pwd, new { @class = "text-box single-line" })
        @Html.ValidationMessageFor(model => model.Pwd)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.TrueName)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.TrueName)
        @Html.ValidationMessageFor(model => model.TrueName)
    </div>
</div>
<div style="width: 45%; margin-right: 2%; float: right">
    <div class="editor-label">
        @Html.LabelFor(model => model.Sex)
    </div>
    <div class="editor-field">
        <select id="customSex" name="customSex" style="width: 96%;">
            <option selected="selected" value="0">--请选择--</option>
            <option @(Model.Sex ? "selected='selected'" : "")  value="1">男</option>
            <option @(Model.Sex ? "" : "selected='selected'")  value="2">女</option>
        </select>
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Phone)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Phone)
        @Html.ValidationMessageFor(model => model.Phone)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Email)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Email)
        @Html.ValidationMessageFor(model => model.Email)
    </div>
</div>
<div style="display: none;">
    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.AddTime)
    @Html.HiddenFor(model => model.IpAddress)
    @Html.HiddenFor(model => model.UserType)
    @Html.HiddenFor(model => model.Guid)
    @Html.HiddenFor(model => model.DepartmentID)
    @Html.HiddenFor(model => model.IsActivity)
    @Html.HiddenFor(model => model.State)
    @Html.HiddenFor(model => model.SortNum)
    @Html.HiddenFor(model => model.Sex)
</div>
